# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding field 'Order.trans_id'
        db.add_column(u'store_order', 'trans_id',
                      self.gf('django.db.models.fields.CharField')(default='', max_length=100),
                      keep_default=False)


    def backwards(self, orm):
        # Deleting field 'Order.trans_id'
        db.delete_column(u'store_order', 'trans_id')


    models = {
        u'store.goodscategory': {
            'Meta': {'object_name': 'GoodsCategory'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        u'store.goodslib': {
            'Meta': {'object_name': 'GoodsLib'},
            'category': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['store.GoodsCategory']"}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'information': ('django.db.models.fields.TextField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'price': ('django.db.models.fields.DecimalField', [], {'default': '0.0', 'max_digits': '10', 'decimal_places': '2'})
        },
        u'store.order': {
            'Meta': {'object_name': 'Order'},
            'amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
            'date': ('django.db.models.fields.DateTimeField', [], {}),
            'detail': ('django.db.models.fields.TextField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'payer': ('django.db.models.fields.CharField', [], {'max_length': '20'}),
            'payment': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'product_amount': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
            'status': ('django.db.models.fields.SmallIntegerField', [], {'default': '2'}),
            'tinyshop': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['store.TinyShop']"}),
            'trans_id': ('django.db.models.fields.CharField', [], {'default': "''", 'max_length': '100'})
        },
        u'store.product': {
            'Meta': {'object_name': 'Product'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['store.ProductImage']"}),
            'information': ('django.db.models.fields.TextField', [], {}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'price': ('django.db.models.fields.DecimalField', [], {'max_digits': '10', 'decimal_places': '2'}),
            'status': ('django.db.models.fields.SmallIntegerField', [], {'default': '1'}),
            'tinyshop': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['store.TinyShop']"})
        },
        u'store.productimage': {
            'Meta': {'object_name': 'ProductImage'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'default': "'/default/store/product_no_img.jpg'", 'max_length': '100'}),
            'tinyshop': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['store.TinyShop']"})
        },
        u'store.tinyshop': {
            'Meta': {'object_name': 'TinyShop'},
            'account': ('django.db.models.fields.DecimalField', [], {'default': '0.0', 'max_digits': '10', 'decimal_places': '2'}),
            'balance': ('django.db.models.fields.DecimalField', [], {'default': '0.0', 'max_digits': '10', 'decimal_places': '2'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.related.ForeignKey', [], {'to': u"orm['store.TinyshopImage']"}),
            'mobile_no': ('django.db.models.fields.CharField', [], {'unique': 'True', 'max_length': '20'}),
            'name': ('django.db.models.fields.CharField', [], {'max_length': '100'}),
            'sales': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        u'store.tinyshopimage': {
            'Meta': {'object_name': 'TinyshopImage'},
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'image': ('django.db.models.fields.files.ImageField', [], {'default': "'/default/store/product_no_img.jpg'", 'max_length': '100'})
        }
    }

    complete_apps = ['store']